package com.lch.netty.netty.tomcat.servlet;

import com.lch.netty.netty.tomcat.http.NRequest;
import com.lch.netty.netty.tomcat.http.NResponse;
import com.lch.netty.netty.tomcat.http.NServlet;

import java.io.IOException;

/**
 * @author: liuchenhui
 * @create: 2019-10-14 14:06
 **/
public class SecondServlet extends NServlet {
    @Override
    protected void doGet(NRequest request, NResponse response) throws IOException {
        this.doPost(request, response);
    }

    @Override
    protected void doPost(NRequest request, NResponse response) throws IOException {
        response.write("I'm secondServlet");
    }
}
